
package webeschool.DataProviders;

import com.sun.data.provider.impl.ObjectListDataProvider;
import eSchool.BL.CriteriosPesquisa;
import eSchool.BL.Disciplinas;
import eSchool.BL.Disciplina;


public class DisciplinasDataProvider extends ObjectListDataProvider{

  private Disciplinas disciplinas = new Disciplinas();
 
  public DisciplinasDataProvider() {
    setList( disciplinas );
    setObjectType( Disciplina.class );
  }
 
  public void load(CriteriosPesquisa criterios) throws Exception {
    ((Disciplinas)getList()).leDados(criterios);
  }
}

